package com.sright.bcard.mini.web.controller;

import com.sright.bcard.content.share.service.UserService;
import com.sright.bcard.mini.web.constant.WebUrl;
import com.sright.bcard.user.share.request.TokenParam;
import com.sright.common.response.SrightResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 共用接口controller
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping(WebUrl.GetUserInfo)
    public SrightResponse getUserInfo(@RequestAttribute TokenParam tokenParam) {
        return userService.getUserInfo(tokenParam);
    }

}
